package com.controller;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;

@Controller //告诉spring 它是一个控制器
public class HelloController {

    @RequestMapping(value= "/hello")
    public String  hello(){

        return "hello";
    }
}
